package cn.stylefeng.guns.modular.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:30
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "schedule_goods_allocation_stock_detail")
public class ScheduleGoodsAllocationStockDetailEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品sku id
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 货位id
     */
    @TableField(value = "goods_allocation_id")
    private Long goodsAllocationId;

    /**
     * 上架时间
     */
    @TableField(value = "put_on_time")
    private Date putOnTime;

    /**
     * 上架多少件商品
     */
    @TableField(value = "put_on_quantity")
    private Long putOnQuantity;

    /**
     * 当前这一批上架的商品还有多少件库存
     */
    @TableField(value = "current_stock_quantity")
    private Long currentStockQuantity;

    /**
     * 当前这一批商品被锁定的库存
     */
    @TableField(value = "locked_stock_quantity")
    private Long lockedStockQuantity;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_SKU_ID = "goods_sku_id";

    public static final String COL_GOODS_ALLOCATION_ID = "goods_allocation_id";

    public static final String COL_PUT_ON_TIME = "put_on_time";

    public static final String COL_PUT_ON_QUANTITY = "put_on_quantity";

    public static final String COL_CURRENT_STOCK_QUANTITY = "current_stock_quantity";

    public static final String COL_LOCKED_STOCK_QUANTITY = "locked_stock_quantity";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}